package com.kingyea.mobilepolice.apimanage.config;

/**
 * @author cxc
 * @version v1.0.0
 * @description
 * @date Created in 2018/5/11 18:41
 */
//
//@Configuration
//public class WebConfig extends WebMvcConfigurationSupport {
//    @Bean
//    public MappingJackson2HttpMessageConverter customJackson2HttpMessageConverter() {
//        MappingJackson2HttpMessageConverter jsonConverter = new MappingJackson2HttpMessageConverter();
//        ObjectMapper objectMapper = new ObjectMapper();
//        objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE);
//        jsonConverter.setObjectMapper(objectMapper);
//        return jsonConverter;
//    }
//
//    @Override
//    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
//        converters.add(customJackson2HttpMessageConverter());
////        super.addDefaultHttpMessageConverters();
//    }
//}
